/*
 * @Author: Nice-2-CU 81088875+Nice-2-CU@users.noreply.github.com
 * @Date: 2023-07-11 21:32:36
 * @LastEditors: Nice-2-CU 81088875+Nice-2-CU@users.noreply.github.com
 * @LastEditTime: 2023-07-19 14:49:59
 * @FilePath: \lost-found-web\vue.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  productionSourceMap: false,
  devServer: {
    proxy: {
      '/api': { //正则匹配到以这个开头的时候 就用代理
        target: "http://123.207.223.160:65000/api/",// 指向的是目标服务器
        changeOrigin: true,  //允许跨域
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
})
